package de.fuberlin.inf.alp2.ue10.a1;

public class GameDisc extends Disc {
	private String genre;
	public GameDisc(String titel, String genre) {
		super(titel);
		this.genre = genre;
	}
	public String getGenre(){
		return genre;
	}
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("CD: " + this.getTitel());
        sb.append((this.isHabIch()) ? "*\n" : "\n");
        sb.append("    " + genre + "\n");
        sb.append("    " + ((this.getKommentar().length() > 0) ? 
        		this.getKommentar() : "<kein Kommentar>"));
        return sb.toString();
	}
}
